package com.example.threaddemo.ThreadDemo07;

public class MyThreadDemo07 extends Thread {

    @Override
    public void run() {

        while (true) {
            if (ThreadDemo07.num % 2 != 0) {
                System.out.println(ThreadDemo07.num);
            } else{
                if (ThreadDemo07.num == 0) {
                    break;
                }
            }
            ThreadDemo07.num--;


        }
    }
}
